package gatech.cs2340.adventuretime.persistent;

import java.util.LinkedList;
import java.util.List;

public class Nurse extends User {
	
	/**
	 * every nurse needs to be under at least one doctor
	 */
	private List<Doctor> doctor;
	/**
	 * 
	 * @param username
	 * @param password
	 * @param doctor enforces our db constraint for having a nurse under at least one doctor
	 */
	public Nurse(String username, String password, Doctor doctor) {
		super(username, password);
		this.doctor = new LinkedList<Doctor>();
		this.doctor.add(doctor);
	}
	public void addDoctor(Doctor doctor)
	{
		this.doctor.add(doctor);
	}
	public void removeDoctor(Doctor doctor)
	{
		this.doctor.remove(doctor);
	}
}
